<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewZamowienieTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewZamowienieLabel_id}"/>
                    <h:outputText value="#{zamowienieController.selected.id}" title="#{bundle.ViewZamowienieTitle_id}"/>
                    <h:outputText value="#{bundle.ViewZamowienieLabel_ilosc}"/>
                    <h:outputText value="#{zamowienieController.selected.ilosc}" title="#{bundle.ViewZamowienieTitle_ilosc}"/>
                    <h:outputText value="#{bundle.ViewZamowienieLabel_cena}"/>
                    <h:outputText value="#{zamowienieController.selected.cena}" title="#{bundle.ViewZamowienieTitle_cena}"/>
                    <h:outputText value="#{bundle.ViewZamowienieLabel_wartosc}"/>
                    <h:outputText value="#{zamowienieController.selected.wartosc}" title="#{bundle.ViewZamowienieTitle_wartosc}"/>
                    <h:outputText value="#{bundle.ViewZamowienieLabel_towar}"/>
                    <h:outputText value="#{zamowienieController.selected.towar}" title="#{bundle.ViewZamowienieTitle_towar}"/>
                    <h:outputText value="#{bundle.ViewZamowienieLabel_klient}"/>
                    <h:outputText value="#{zamowienieController.selected.klient}" title="#{bundle.ViewZamowienieTitle_klient}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{zamowienieController.destroyAndView}" value="#{bundle.ViewZamowienieDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewZamowienieEditLink}"/>
                <br />
                <h:commandLink action="#{zamowienieController.prepareCreate}" value="#{bundle.ViewZamowienieCreateLink}" />
                <br />
                <h:commandLink action="#{zamowienieController.prepareList}" value="#{bundle.ViewZamowienieShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewZamowienieIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
